package com.jsong.linuo.oop.test2;

import com.sun.org.apache.bcel.internal.generic.NEW;

public class Client {
    public static void main(String[] args) {
        Game game1 = new DNF();//向上转型
        Game game2 = new CS();
        Game game3 = new LOL();

        Player p = new Player();

        p.happy(game1);
        p.happy(game2);
        p.happy(game3);

    }
}
